package com.xbongbong.pro.link.business.pojo.dto;

import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/10/30 15:12
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class LinkBusinessListDTO extends BaseDTO {

    private static final long serialVersionUID = -4445956780512080908L;

    @NotNull(message = "{dto.msg.linkBusinessList.formId.NotNull}")
    private Long formId;
    /**
     * 当前表单业务类型
     */
    @NotNull(message = "{dto.msg.linkBusinessList.businessType.NotNull}")
    private Integer businessType;
    /**
     * 当前字段不能为空
     */
    @NotEmpty(message = "{dto.msg.linkBusinessList.attr.NotEmpty}")
    private String attr;

    /**
     * 关联表单的业务类型
     */
    @NotNull(message = "{dto.msg.linkBusinessList.linkBusinessType.NotNull}")
    private Integer linkBusinessType;


    private Integer del;

    public LinkBusinessListDTO() {
        del = DelEnum.NORMAL.getDel();
    }
}
